package com.beichuan_travel.interfaces.transform;

import com.beichuan_travel.model.dto.AttractionDTO;
import com.beichuan_travel.model.po.AttractionPO;
import com.beichuan_travel.model.vo.AttractionVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface AttractionCovertBasic {

    AttractionCovertBasic INSTANCE = Mappers.getMapper(AttractionCovertBasic.class);

    AttractionVO POtoCovertVO(AttractionPO attractionPO);

    AttractionPO DTOtoCovertPO(AttractionDTO attractionDTO);

    List<AttractionVO> POtoCoertVO(List<AttractionPO> list);

    List<AttractionPO> DTOtoCovertPO(List<AttractionDTO> list);
}
